/* 主页接口 */
const {
  selectAuctionImgInfo,
  selectPriviewProductInfo
} = require('../model/index');

/* 获取专场图片信息 */
let getAuctionImgInfo = async (ctx, next) => {
  selectAuctionImgInfo(ctx, next);
};

/* 获取预展信息 */
let getPriviewProductInfo = async (ctx, next) => {
  selectPriviewProductInfo(ctx, next);
};

/* 注意请求方式后面的空格 */
module.exports = {
  'GET /auction/img': getAuctionImgInfo,
  'GET /priviewProduct': getPriviewProductInfo,
};